//
//  RulesArrayController.m
//  Growl
//
//  Created by Chris Karr on 7/15/07.
//  Copyright 2007 __MyCompanyName__. All rights reserved.
//

#import "RulesArrayController.h"


@implementation RulesArrayController

- (void) addObject: (id) object
{
	NSMutableDictionary * dict = (NSMutableDictionary *) object;
	
	if ([dict valueForKey:@"title"] == nil)
	{
		[dict setValue:@"New Rule" forKey:@"title"];
		[dict setValue:@"No Sound" forKey:@"soundName"];
		[dict setValue:@"contains" forKey:@"operation"];
		[dict setValue:@"Title" forKey:@"field"];
	}
	
	[super addObject:dict];
}

@end
